package Day001_继承_抽象类.抽象类;

//子类不是抽象类,父类是抽象类,抽象方法必须重写

public class Dog extends Animal {

    public void eat(){
        System.out.println("狗吃肉");
    }

    public void sleep(){
        System.out.println("睡觉");
    }
}
